package com.zen.lon.open;

import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author ZonLen since on 2021/9/9 下午10:03
 */
@RestController
public class DemoController {

  @Autowired
  private DemoProxyAgentClient demoRemoteClient;

  @PostMapping("/demotest/{a}")
  public String demotest(@RequestParam("zhanglong")String zhanglong, @PathVariable("a") String a, @RequestParam("aa") String aa,
      @RequestBody Map<String, String> map){
    return demoRemoteClient.config(zhanglong,a,aa,map);
  }
}
